<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:composite="http://java.sun.com/jsf/composite">
 <h:head>
 
   <title>Esto no se pintara</title>
 
 </h:head>
 
 <h:body>
     
   <composite:interface displayName="Input text field with label, input and message components" >
      <composite:attribute name="entity" required="true" />
      <composite:attribute name="field"  required="true" />
      <composite:attribute name="password"  required="true" />
      <composite:attribute name="label"  required="false" default="#{cc.attrs.entity.class.simpleName}.#{cc.attrs.field}" />
      <composite:attribute name="required" required="false" default="false" />
   </composite:interface>
 
   <composite:implementation>
  
    <h:panelGroup id="containerOflabel">
        <h:outputLabel id="label"
        for="#{cc.attrs.field}" value="Nombre de Usuario" />
        <ui:fragment rendered="#{cc.attrs.required}">
            <h:outputText value="(*)" styleClass="red" style="color:red"/>
        </ui:fragment>
        <h:outputText value=":" />
    </h:panelGroup>
 
    <h:inputText id="input" required="#{cc.attrs.required}"
        value="#{cc.attrs.entity[cc.attrs.field]}" >
        <f:ajax render="message" />
    </h:inputText>
 
    <h:message id="message" for="input" errorClass="errorMessages" />
    
   </composite:implementation>
 
 </h:body>
 
</html>